<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" th:href="@{app.css}">
</head>
<body>
<p th:text="${message}">静态内容</p>

<p th:text="|你好,${student.getName()}|">hello Thymeleaf</p>
<p th:text="|你好,${student.name}|">hello Thymeleaf</p>
<div th:object="${student}" class="app">
    <p th:text="*{name}"></p>
    <p th:text="*{id}"></p>
    <p th:text="*{sex}"></p>
</div>
<p th:if="!${student.sex}">男</p>
<p th:if="${student.sex}">女</p>
<ul>
    <li th:each="hobby:${student.hobby}" th:text="${student.hobby}"></li>
</ul>
</body>
</html>